package top.maof.book.annotation;

import io.swagger.annotations.ApiModel;
import top.maof.book.type.CacheTime;

import java.lang.annotation.*;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@ApiModel("缓存过期")
public @interface CacheExpire {
    long expire() default 2;

    CacheTime time() default CacheTime.HOURS;
}
